package com.freeter.modules.good.entity.view;

import com.baomidou.mybatisplus.annotations.TableName;
import com.freeter.modules.good.entity.CategorySpecEntity;
import io.swagger.annotations.ApiModel;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;


/**
 * 分类规格表
 *
 * @date 2018-05-31 18:32:07
 */
@TableName("cn_category_spec")
@ApiModel(value = "CategorySpec")
public class CategorySpecView extends CategorySpecEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    public CategorySpecView() {
    }

    private Integer categoryId;

    private String categoryName;

    private Long[] categoryIds;

    public CategorySpecView(CategorySpecEntity categorySpecEntity) {
        BeanUtils.copyProperties(this, categorySpecEntity);
    }


    public String getCategoryName() {
        return categoryName;
    }


    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }


    public Long[] getCategoryIds() {
        return categoryIds;
    }


    public void setCategoryIds(Long[] categoryIds) {
        this.categoryIds = categoryIds;
    }


    @Override
    public Integer getCategoryId() {
        return categoryId;
    }


    @Override
    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }


}
